home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / dev / www-talk.9301-9306.Z / www-talk.9301-9306 / text1286.txt < prev    next >
Encoding:
Text File  |  1995-04-24  |  1.7 KB  |  43 lines

  1. Torben Nielsen says:
  2.  
  3. > I realize this has come up before, but how about really doing something about
  4. > equation support? There are lots of documents I would like to put into the
  5. > Web, but without support for embedded equations, it's really quite difficult.
  6. > Something simple like eqn support would be great. And eqn shouldn't be all
  7. > that hard to parse either.....
  8.  
  9. Bill Janssen chips in with:
  10.  
  11. > And I really like to send encapsulated Postcript in my documents... 
  12. > Having ghostscript should make the parsing and layout easy!
  13.  
  14. Well both of these will be possible with the HTML+ DTD, by using the capability
  15. to embed foreign formats inline in the HTML+ source, e.g.
  16.  
  17.         <H2>A example of an equation</H2>
  18.  
  19.         <EMBED TYPE="text/eqn">zeta (s) ~=~ sum from k=1 to inf
  20.          k sup -s ~~~ (Re s > 1) </EMBED>
  21.  
  22. The browser identifies the format of the embedded data from the "type"
  23. attribute, specified as a MIME content type. Certain characters need to
  24. be escaped using entity definitions, e.g. ">" by ">" in the example.
  25.  
  26. Building in support for a range of formats has the danger of leading to
  27. very large programs for browsers. This could be avoided by using a common
  28. API for rendering foreign formats, e.g. as functions that take a sequence
  29. of bytes and return a pixmap.
  30.  
  31. Browsers can then be upgraded to display new formats without changing their
  32. code at all. All you would need is a way of binding the MIME content type
  33. to the function name for that format, e.g. via X resources or a config file.
  34. The functions could be implemented as separate programs driven via pipes and
  35. stdin/stdout or as dynamically linked library modules (Windows DLLs).
  36.  
  37. How does that sound?
  38.  
  39. Dave
  40.  
  41. p.s. you can also put the foreign data in a separate file referenced by a URL.
  42.  
  43.